package com.weblog.weblogapi.service;

import com.weblog.weblogapi.dao.pojo.Article;
import com.weblog.weblogapi.vo.ArticleVo;
import com.weblog.weblogapi.vo.Result;
import com.weblog.weblogapi.vo.params.PageParams;
import org.springframework.stereotype.Service;


public interface ArticleService {
    Result listArticle(PageParams pageParams);

    Result hotArticle(int limit);

    Result newArticle(int limit);

    Result findArticleById(int id);

    Result publish(ArticleVo articleVo);

    Result deleteArticle(int id);

    Result updateArticle(ArticleVo articleVo);

    Result findUserArticle(String id);
}
